<template>
    <div class="advertising">
      <!-- 广告位 -->
      <div class="guang" @click="go()">
        <img :src="guang" alt="" />
      </div>
    </div>
</template>

<script>
export default {
    data(){
        return{
        guang: require("../assets/guang.png"),
        }
    },
    methods:{
      go() {
        window.open('https://www.baidu.com')
      }
    }
}
</script>

<style lang="scss" scoped>
.guang {
      width: 100%;
      margin: 4rem 0;

      img {
        width: 100%;
      }
    }
</style>